/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package utilities;

import java.awt.Color;
import java.awt.Point;
import java.io.Serializable;

/**
 * The bean used to define the map details
 * @author Arvanitis Ioannis
 */
public class DrawingBean implements Serializable {

    private Point point; // row & column in grid
    private Color color;
    private String info;

    /**
     * Creates new form DrawingBean
     * @param point Cell indicated
     * @param color Color for the cell
     */
    public DrawingBean(Point point, Color color) {
        this.point = point;
        this.color = color;
    }

    /**
     * Creates new form DrawingBean
     * @param point Cell indicated
     * @param color Color for the cell
     * @param info Information about this cell
     */
    public DrawingBean(Point point, Color color, String info) {
        this.point = point;
        this.color = color;
        this.info = info;
    }

    /**
     * Gets the color of a cell
     * @return the color of a cell
     */
    public Color getColor() {
        return color;
    }

    /**
     * Sets the color of a cell
     * @param color Color of a cell
     */
    public void setColor(Color color) {
        this.color = color;
    }

    /**
     * Gets the cell in this bean
     * @return the cell in this bean
     */
    public Point getPoint() {
        return point;
    }

    /**
     * Sets the cell in this bean
     * @param point Cell in this bean
     */
    public void setPoint(Point point) {
        this.point = point;
    }

    /**
     * Gets cell's information
     * @return cell's information
     */
    public String getInfo() {
        return info;
    }

    /**
     * Sets cell's information
     * @param info Cell's information
     */
    public void setInfo(String info) {
        this.info = info;
    }
}
